package com.stylefeng.guns.rest.common;


public class CurrentUser {
    private static final ThreadLocal<String> threadlocal = new ThreadLocal<>();

    public static void saveUserId(String userId){
        threadlocal.set(userId);
    }

    public static String getCurrentUser(){
        return threadlocal.get();
    }
}
